﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DBMapping;

namespace PollerConfiguration
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DBClassesDataContext dc = new DBClassesDataContext();
            dgSources.DataSource = dc.D_Sources.ToList();
        }

        private void btnCreateSource_Click(object sender, EventArgs e)
        {
            NewSourceForm form = new NewSourceForm();
            form.ShowDialog(this);
        }
    }
}
